﻿<%@ Page Title="" Language="C#" MasterPageFile="~/UFSSMaster.Master" AutoEventWireup="true" CodeBehind="updateinfo.aspx.cs" Inherits="UFSSWebApp.updateinfo" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="PageName" runat="server">
Profile / Update Info
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="Body" runat="server">
    <div class="Box" style="width:500px">
        <h2>Updating your account info.</h2>
        <table>
            <tbody>
                <tr>
                    <td align="right" valign="middle"><b>First Name: </b> </td>
                    <td><asp:TextBox ID="txtFname" runat="server"></asp:TextBox></td>
                </tr>
                <tr>
                    <td align="right" valign="middle"><b>Last Name: </b> </td>
                    <td><asp:TextBox ID="txtLname" runat="server"></asp:TextBox></td>
                </tr>
                <tr>
                    <td align="right" valign="middle"><b>Email Address: </b> </td>
                    <td><asp:TextBox ID="txtEmail1" runat="server"></asp:TextBox></td>
                    <td>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                            ControlToValidate="txtEmail1" ErrorMessage="* "></asp:RequiredFieldValidator>
                        <asp:RegularExpressionValidator ID="revEmail1" runat="server" 
                            ErrorMessage="Incorrect Email Format!" ControlToValidate="txtEmail1"></asp:RegularExpressionValidator></td>
                </tr>
                <tr>
                    <td align="right" valign="middle"><b>Re-enter Email: </b> </td>
                    <td><asp:TextBox ID="txtEmail2" runat="server"></asp:TextBox></td>
                    <td>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                            ControlToValidate="txtEmail2" ErrorMessage="* "></asp:RequiredFieldValidator>
                        <asp:RegularExpressionValidator ID="revEmail2" runat="server" 
                            ControlToValidate="txtEmail2" 
                            ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" 
                            ErrorMessage="Incorrect Email Format!"></asp:RegularExpressionValidator></td>
                </tr>
                <tr>
                    <td><asp:CompareValidator ID="CompareValidator1" runat="server" 
                            ErrorMessage="Emails do not match!" ControlToCompare="txtEmail1" 
                            ControlToValidate="txtEmail2"></asp:CompareValidator></td>
                    <td>
                        <asp:Button ID="btnReset" runat="server" Text="Reset" 
                            UseSubmitBehavior="False" onclick="btnReset_Click" />
                        &nbsp;
                        <asp:Button ID="btnConfirm" runat="server" Text="Confirm" 
                            onclick="btnConfirm_Click" />
                    </td>
                    <td><asp:Label ID="lblError" runat="server" Text="Error Updating Info" 
                            ForeColor="Red" Visible="False"></asp:Label></td>
                </tr>
            </tbody>
        </table>
    </div>
</asp:Content>
